/* Copyright 2001,2002,2003 NAH6 BV
 * All Rights Reserved
 *
 *  $Header: /var/lib/cvs/secphone/ui/misc/debug.h,v 1.6 2003/11/21 12:39:24 itsme Exp $
 *
 *
 */


#ifndef __DEBUG_H__

#include <windows.h>    // for DWORD and BYTE
#include <TCHAR.h>

#ifdef __cplusplus
extern "C" {
#endif

void debug(const char *msg, ...);
void error(const char *msg, ...);
void ceerror(const char *msg, ...);

// call one of these functions to enable output of debugging messages
void DebugSetLogfile(const char *filename);
void DebugMessagebox();
void DebugOutputDebugString();

#ifdef __cplusplus
}
#endif

#ifdef __cplusplus

void error(DWORD dwErrorCode, const char *msg, ...);

class CDebugWindow  {
public:
    virtual void appendString(const TCHAR *str)=0;
};
void DebugRegisterWindow(CDebugWindow *wnd);

#endif

#define __DEBUG_H__
#endif

